home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1730 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.2 KB

  1. Path: centre.univ-orleans.fr!desiree!emmguyot
  2. From: emmguyot@desiree.univ-orleans.fr (Emmanuel GUYOT)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Request Help with Borland C++ 4.0
  5. Date: 12 Jan 1996 16:14:37 GMT
  6. Organization: CITU - Universite d'Orleans - FRANCE
  7. Message-ID: <4d61dd$dvb@centre.univ-orleans.fr>
  8. References: <Pine.BSD/.3.91.960112094150.10777A-100000@daffy.bgcc.com>
  9. NNTP-Posting-Host: desiree.cnrs-orleans.fr
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Donald C. Bennett, Jr (bennett@bgcc.com) wrote:
  13. : Help!!  
  14.  
  15. : When I build my project files I receive the following linker
  16. : error:  
  17.  
  18. : Linking stream.exe:  
  19. : Linker Warning: No module definition file specified: using defaults 
  20. : Linker Error: Undefined symbol OwlMain(int,charfar*far*) in library file 
  21. : F:\BC4\LIB\owlwi.lib in module winmain 
  22.  
  23. : I am not concerned with the warning but I cannot solve the error 
  24. : problem.  Drive F: is the CDROM so I could not have currupted the file.  
  25.  
  26. : If I build this exe as a project I receive the same error referring to an 
  27. : undefined WinMain. Please help. 
  28. : Don
  29.  
  30.  
  31. First verify that you have specified the right target (Dos or Windows)
  32. If you really meant to build a Windows application :
  33.  
  34. - In the case you want to use OWL library, the main entry point is
  35. OwlMain. It has the same arguments as main does in a Dos C program.
  36. - If you don't want to use OWL library, uncheck the Owl button in
  37. the Target Expert dialog box. Now the main entry point is
  38. WinMain with some complex arguments.
  39.  
  40. Anyway, you have to define one of the following 3 entry points :
  41.  
  42. main, (Dos C program)
  43. WinMain (Windows program without OWL)
  44. OwlMain (Windows program with OWL)
  45.  
  46. E.G.
  47.  
  48. ------------------------------------------------------------------------------
  49. ---------------------------->>>> Emmanuel Guyot <<<<--------------------------
  50. LPCE-CNRS                              | 
  51. 3A avenue de la Recherche Scientifique | Phone     : 33 38 51 78 25
  52. 45071 Orleans Cedex 2                  | Fax       : 33 38 63 12 34
  53. France                                 | EMail     : emmguyot@cnrs-orleans.fr
  54. ------------------------------------------------------------------------------
  55. Home Page : http://desiree.cnrs-orleans.fr/cgi-bin/cpt_html?index
  56. ------------------------------------------------------------------------------
  57.